Optimal. Leaf size=96 \[ \frac {\left (3 a^2+2 a b+3 b^2\right ) \text {ArcTan}(\sinh (c+d x))}{8 d}+\frac {3 \left (a^2-b^2\right ) \text {sech}(c+d x) \tanh (c+d x)}{8 d}+\frac {(a-b) \text {sech}^3(c+d x) \left (a+b \sinh ^2(c+d x)\right ) \tanh (c+d x)}{4 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 96, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3269, 424, 393,
209} \begin {gather*} \frac {\left (3 a^2+2 a b+3 b^2\right ) \text {ArcTan}(\sinh (c+d x))}{8 d}+\frac {3 \left (a^2-b^2\right ) \tanh (c+d x) \text {sech}(c+d x)}{8 d}+\frac {(a-b) \tanh (c+d x) \text {sech}^3(c+d x) \left (a+b \sinh ^2(c+d x)\right )}{4 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 393
Rule 424
Rule 3269
Rubi steps
\begin {align*} \int \text {sech}^5(c+d x) \left (a+b \sinh ^2(c+d x)\right )^2 \, dx &=\frac {\text {Subst}\left (\int \frac {\left (a+b x^2\right )^2}{\left (1+x^2\right )^3} \, dx,x,\sinh (c+d x)\right )}{d}\\ &=\frac {(a-b) \text {sech}^3(c+d x) \left (a+b \sinh ^2(c+d x)\right ) \tanh (c+d x)}{4 d}+\frac {\text {Subst}\left (\int \frac {a (3 a+b)+b (a+3 b) x^2}{\left (1+x^2\right )^2} \, dx,x,\sinh (c+d x)\right )}{4 d}\\ &=\frac {3 \left (a^2-b^2\right ) \text {sech}(c+d x) \tanh (c+d x)}{8 d}+\frac {(a-b) \text {sech}^3(c+d x) \left (a+b \sinh ^2(c+d x)\right ) \tanh (c+d x)}{4 d}+\frac {\left (3 a^2+2 a b+3 b^2\right ) \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sinh (c+d x)\right )}{8 d}\\ &=\frac {\left (3 a^2+2 a b+3 b^2\right ) \tan ^{-1}(\sinh (c+d x))}{8 d}+\frac {3 \left (a^2-b^2\right ) \text {sech}(c+d x) \tanh (c+d x)}{8 d}+\frac {(a-b) \text {sech}^3(c+d x) \left (a+b \sinh ^2(c+d x)\right ) \tanh (c+d x)}{4 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 4.52, size = 303, normalized size = 3.16 \begin {gather*} -\frac {\text {csch}^3(c+d x) \left (128 \, _5F_4\left (\frac {3}{2},2,2,2,2;1,1,1,\frac {9}{2};-\sinh ^2(c+d x)\right ) \sinh ^6(c+d x) \left (a+b \sinh ^2(c+d x)\right )^2+128 \, _4F_3\left (\frac {3}{2},2,2,2;1,1,\frac {9}{2};-\sinh ^2(c+d x)\right ) \sinh ^6(c+d x) \left (7 a^2+12 a b \sinh ^2(c+d x)+5 b^2 \sinh ^4(c+d x)\right )+35 \left (3375 a^2+a (657 a+4643 b+607 b \cosh (2 (c+d x))) \sinh ^2(c+d x)+1947 b^2 \sinh ^4(c+d x)+485 b^2 \sinh ^6(c+d x)\right )-\frac {105 \tanh ^{-1}\left (\sqrt {-\sinh ^2(c+d x)}\right ) \left (1125 a^2+2 a (297 a+875 b) \sinh ^2(c+d x)+\left (37 a^2+988 a b+649 b^2\right ) \sinh ^4(c+d x)+2 b (11 a+189 b) \sinh ^6(c+d x)+9 b^2 \sinh ^8(c+d x)\right )}{\sqrt {-\sinh ^2(c+d x)}}\right )}{6720 d} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 1.67, size = 276, normalized size = 2.88
method | result | size |
risch | \(\frac {{\mathrm e}^{d x +c} \left (3 a^{2} {\mathrm e}^{6 d x +6 c}+2 a b \,{\mathrm e}^{6 d x +6 c}-5 b^{2} {\mathrm e}^{6 d x +6 c}+11 a^{2} {\mathrm e}^{4 d x +4 c}-14 a b \,{\mathrm e}^{4 d x +4 c}+3 b^{2} {\mathrm e}^{4 d x +4 c}-11 a^{2} {\mathrm e}^{2 d x +2 c}+14 a b \,{\mathrm e}^{2 d x +2 c}-3 b^{2} {\mathrm e}^{2 d x +2 c}-3 a^{2}-2 a b +5 b^{2}\right )}{4 d \left (1+{\mathrm e}^{2 d x +2 c}\right )^{4}}+\frac {3 i \ln \left ({\mathrm e}^{d x +c}+i\right ) a^{2}}{8 d}+\frac {i \ln \left ({\mathrm e}^{d x +c}+i\right ) a b}{4 d}+\frac {3 i \ln \left ({\mathrm e}^{d x +c}+i\right ) b^{2}}{8 d}-\frac {3 i \ln \left ({\mathrm e}^{d x +c}-i\right ) a^{2}}{8 d}-\frac {i \ln \left ({\mathrm e}^{d x +c}-i\right ) a b}{4 d}-\frac {3 i \ln \left ({\mathrm e}^{d x +c}-i\right ) b^{2}}{8 d}\) | \(276\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 347 vs.
\(2 (90) = 180\).
time = 0.50, size = 347, normalized size = 3.61 \begin {gather*} -\frac {1}{4} \, b^{2} {\left (\frac {3 \, \arctan \left (e^{\left (-d x - c\right )}\right )}{d} + \frac {5 \, e^{\left (-d x - c\right )} - 3 \, e^{\left (-3 \, d x - 3 \, c\right )} + 3 \, e^{\left (-5 \, d x - 5 \, c\right )} - 5 \, e^{\left (-7 \, d x - 7 \, c\right )}}{d {\left (4 \, e^{\left (-2 \, d x - 2 \, c\right )} + 6 \, e^{\left (-4 \, d x - 4 \, c\right )} + 4 \, e^{\left (-6 \, d x - 6 \, c\right )} + e^{\left (-8 \, d x - 8 \, c\right )} + 1\right )}}\right )} - \frac {1}{4} \, a^{2} {\left (\frac {3 \, \arctan \left (e^{\left (-d x - c\right )}\right )}{d} - \frac {3 \, e^{\left (-d x - c\right )} + 11 \, e^{\left (-3 \, d x - 3 \, c\right )} - 11 \, e^{\left (-5 \, d x - 5 \, c\right )} - 3 \, e^{\left (-7 \, d x - 7 \, c\right )}}{d {\left (4 \, e^{\left (-2 \, d x - 2 \, c\right )} + 6 \, e^{\left (-4 \, d x - 4 \, c\right )} + 4 \, e^{\left (-6 \, d x - 6 \, c\right )} + e^{\left (-8 \, d x - 8 \, c\right )} + 1\right )}}\right )} - \frac {1}{2} \, a b {\left (\frac {\arctan \left (e^{\left (-d x - c\right )}\right )}{d} - \frac {e^{\left (-d x - c\right )} - 7 \, e^{\left (-3 \, d x - 3 \, c\right )} + 7 \, e^{\left (-5 \, d x - 5 \, c\right )} - e^{\left (-7 \, d x - 7 \, c\right )}}{d {\left (4 \, e^{\left (-2 \, d x - 2 \, c\right )} + 6 \, e^{\left (-4 \, d x - 4 \, c\right )} + 4 \, e^{\left (-6 \, d x - 6 \, c\right )} + e^{\left (-8 \, d x - 8 \, c\right )} + 1\right )}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1472 vs.
\(2 (90) = 180\).
time = 0.39, size = 1472, normalized size = 15.33 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 218 vs.
\(2 (90) = 180\).
time = 0.44, size = 218, normalized size = 2.27 \begin {gather*} \frac {{\left (\pi + 2 \, \arctan \left (\frac {1}{2} \, {\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )} e^{\left (-d x - c\right )}\right )\right )} {\left (3 \, a^{2} + 2 \, a b + 3 \, b^{2}\right )} + \frac {4 \, {\left (3 \, a^{2} {\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}^{3} + 2 \, a b {\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}^{3} - 5 \, b^{2} {\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}^{3} + 20 \, a^{2} {\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )} - 8 \, a b {\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )} - 12 \, b^{2} {\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}\right )}}{{\left ({\left (e^{\left (d x + c\right )} - e^{\left (-d x - c\right )}\right )}^{2} + 4\right )}^{2}}}{16 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.89, size = 327, normalized size = 3.41 \begin {gather*} \frac {\mathrm {atan}\left (\frac {{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\left (3\,a^2\,\sqrt {d^2}+3\,b^2\,\sqrt {d^2}+2\,a\,b\,\sqrt {d^2}\right )}{d\,\sqrt {9\,a^4+12\,a^3\,b+22\,a^2\,b^2+12\,a\,b^3+9\,b^4}}\right )\,\sqrt {9\,a^4+12\,a^3\,b+22\,a^2\,b^2+12\,a\,b^3+9\,b^4}}{4\,\sqrt {d^2}}-\frac {6\,{\mathrm {e}}^{c+d\,x}\,\left (a^2-2\,a\,b+b^2\right )}{d\,\left (3\,{\mathrm {e}}^{2\,c+2\,d\,x}+3\,{\mathrm {e}}^{4\,c+4\,d\,x}+{\mathrm {e}}^{6\,c+6\,d\,x}+1\right )}+\frac {4\,{\mathrm {e}}^{c+d\,x}\,\left (a^2-2\,a\,b+b^2\right )}{d\,\left (4\,{\mathrm {e}}^{2\,c+2\,d\,x}+6\,{\mathrm {e}}^{4\,c+4\,d\,x}+4\,{\mathrm {e}}^{6\,c+6\,d\,x}+{\mathrm {e}}^{8\,c+8\,d\,x}+1\right )}+\frac {{\mathrm {e}}^{c+d\,x}\,\left (a^2-10\,a\,b+9\,b^2\right )}{2\,d\,\left (2\,{\mathrm {e}}^{2\,c+2\,d\,x}+{\mathrm {e}}^{4\,c+4\,d\,x}+1\right )}+\frac {{\mathrm {e}}^{c+d\,x}\,\left (3\,a^2+2\,a\,b-5\,b^2\right )}{4\,d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________